package com.learn.spring.java_config;

import com.learn.spring.bean.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author wangxing
 * @version 2020/6/12 12:04 Administrator
 */
@Configuration
@PropertySource(value = {"classpath:beans.properties"}, encoding = "gbk")
public class MainValueConfig {
    @Bean(name = "person")
    public Person getPerson() {
        return new Person();
    }
}
